package Thread.Test.Test3;

public class ThreadTest {
    public static void main(String[] args) {
        //同时开启两个线程,共同获取1-100之间的所有数字
        //要求:输出所有的奇数
        MyThread t1 =new MyThread();
        MyThread t2 =new MyThread();

        t1.setName("A线程");
        t2.setName("B线程");

        t1.start();
        t2.start();
    }
}
